import request from '@/plugins/request';


//获取用户信息
export function accountInfo(data) {
    return request({
        url:'/api/web/account/info',
        method: 'get',
        params:{...data}
    });
}

//更新用户基本信息
export function accountUpdate(data) {
    return request({
        url:'/api/web/account/updateBasic',
        method: 'post',
        data
    });
}
//更新用户密码
export function accountResetPw(data) {
    return request({
        url:'/api/web/account/resetPwd',
        method: 'post',
        data
    });
}
//更新用户手机号
export function accountResetPhone(data) {
    return request({
        url:'/api/web/account/resetPhone',
        method: 'post',
        data
    });
}

//更新用户手机号
export function accountUpdatePhone(data) {
    return request({
        url:'/api/web/account/updatePhone',
        method: 'post',
        data
    });
}
//发送验证码
export function sendResetPhoneCaptcha(data) {
    return request({
        url:'/api/web/account/sendResetPhoneCaptcha',
        method: 'post',
        data
    });
}
